package com.lufei4.chestnut.view;

import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lufei4.chestnut.R;

import java.util.List;

/**
 * @ProjectName: Chestnut
 * @Package: com.lufei4.chestnut.view
 * @ClassName: AdapterMainList
 * @Description: java类作用描述
 * @Author: liushijiang 15833013864@163.com
 * @CreateDate: 2020/12/25 11:37
 * @UpdateUser: 更新者：
 * @UpdateDate: 2020/12/25 11:37
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */

public class AdapterMainList extends BaseQuickAdapter<String, BaseViewHolder> {
    public AdapterMainList(@Nullable List<String> data) {
        super(R.layout.item_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        TextView textView = (TextView)helper.getView(R.id.text1);
        textView.setText(item);
    }
}
